﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
    Inherits="System.Web.Mvc.ViewPage<Bookkeeping.Mvc.Models.Budget.ListViewModel>" %>

<asp:Content ID="scripts" ContentPlaceHolderID="generalHead" runat="server">
    <script type="text/javascript" src="<%=Url.Content("~/Scripts/Budget/List.js") %>"></script>
</asp:Content>

<asp:Content ID="pageTitle" ContentPlaceHolderID="pageTitle" runat="server">
    Budget
</asp:Content>

<asp:Content ID="mainContent" ContentPlaceHolderID="mainContent" runat="server">
    <%Html.RenderPartial("MonthNavigation", Model.MonthNavigation); %>
    
    <ul id="actionMenu">
        <li>
            <%=Html.ActionLink("Add", "Add", "BudgetPost", new { year = Model.Year, month = Model.Month }, new { })%>
        </li>
    </ul>
    
    <%Html.RenderPartial("PostList", Model.Savings); %>
    <%Html.RenderPartial("PostList", Model.Expenses); %>
    <%Html.RenderPartial("PostList", Model.Incomes); %>
    <%Html.RenderPartial("Total", Model.Total); %>
</asp:Content>
